<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="save_undo" />
        <title>Add an employee to the project</title>
    </head>
    <body>
        <div class="body">

          <h1>Delete schedule for course: ${Course.get(courseid).name}</h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <form name ="deleteSchedule" action="/MegaSoft/schedule/save_deleted_schedule" >
              <input type="hidden" name="courseid" value="${courseid}"/>
              <table>
                <thead>
                    <tr>
                        <th>${Inter.printOut('Delete',session.language)}</th>
                        <th>${Inter.printOut('Date',session.language)}</th>
                        <th>${Inter.printOut('Start Hour',session.language)}</th>
                        <th>${Inter.printOut('End Hour',session.language)}</th>
                        <th>${Inter.printOut('Responsible',session.language)}</th>
                    </tr>
                </thead>
                <tbody>
                <g:each in="${scheduleList}" status="i" var="scheduleInstance">
                  <tr>
                    <td>
                      <input type="checkbox" name ="scheduleid" value="${scheduleInstance.id}" />
                    </td>
                    <td>${scheduleInstance?.day()}</td>
                    <td>${scheduleInstance?.startHours()}</td>
                    <td>${scheduleInstance?.endHours()}</td>
                    <td>${scheduleInstance?.responsible}</td>
                  </tr>
                </g:each>
                </tbody>
              </table>
              <div class="buttons">
                  <span class="button">
                      <input type="submit" class="delete_schedule" value="delete schedule" name="Delete schedule"/>
                  </span>
             </div>
            </form>
        </div>
  </body>
</html>
